function disableDiv()
{
//var newdiv = document.createElement('div');
//var divIdName = 'disableDiv';
//newdiv.setAttribute('id',divIdName);
newdiv = document.getElementById("disableDiv");
newdiv.style.width = "100%";
newdiv.style.height = "650px";
newdiv.style.left = "0";
newdiv.style.top = "0";
newdiv.style.position = "absolute";
newdiv.style.zIndex = "1000";
newdiv.style.opacity =  "0.7";
newdiv.style.background = "#000000";
newdiv.style.border = "1px solid #000000";
document.body.appendChild(newdiv);
}

function clearDiv()
{
 createdDiv = document.getElementById("disableDiv");
 createdDiv.style.zIndex = "0";
 createdDiv.style.opacity =  "0";
 createdDiv.style.width = "0%";
 createdDiv.style.height = "0%";
}

function showPopDiv()
{
	var win_height = 450;
	var win_width = 1000;
	var height = window.top.outerHeight;
	var width = window.top.outerWidth;
	//var top = Math.round((height-win_height)/2);
	var top = "80";
    var left = Math.round((width-win_width)/2);
	
	div_obj = document.getElementById("pop_div");
	div_obj.style.height = win_height;
	div_obj.style.width = win_width;
	div_obj.style.left = left;
	div_obj.style.top = top;
	div_obj.style.zIndex = "1010";
}

function showPopSearchDiv()
{
	var win_height = 400;
	var win_width = 400;
	var height = window.top.outerHeight;
	var width = window.top.outerWidth;
	//var top = Math.round((height-win_height)/2);
	var top = "160";
    var left = Math.round((width-win_width)/2);
	
	div_obj = document.getElementById("pop_div_search");
	div_obj.style.height = win_height;
	div_obj.style.width = win_width;
	div_obj.style.left = left;
	div_obj.style.top = top;
	div_obj.style.zIndex = "1010";
}

function closePopDiv()
{
	div_obj = document.getElementById("pop_div");
	div_obj.style.zIndex = "-1";
	clearDiv();
}


function close_search()
{
	div_obj = document.getElementById("pop_div_search");
	div_obj.style.zIndex = "-1";
	clearDiv();
}

function showPopReportsDiv()
{
	var win_height = 400;
	var win_width = 400;
	var height = window.top.outerHeight;
	var width = window.top.outerWidth;
	//var top = Math.round((height-win_height)/2);
	var top = "160";
    var left = Math.round((width-win_width)/2);
	
	div_obj = document.getElementById("pop_reports");
	div_obj.style.height = win_height;
	div_obj.style.width = win_width;
	div_obj.style.left = left;
	div_obj.style.top = top;
	div_obj.style.zIndex = "1010";
}

function close_reports()
{
	div_obj = document.getElementById("pop_reports");
	div_obj.style.zIndex = "-1";
	clearDiv();
}

function pop_it()
{
 var win_height = 136;
 var win_width = 300;
 var height = window.opener.top.outerHeight;
 var width = window.opener.top.outerWidth;
 var top = Math.round((height-win_height)/2);
 var left = Math.round((width-win_width)/2);
 window.open("set_veh_prefix.php", 'Veh_prefix', 'location=no,height='+win_height+',width='+win_width+',top='+top+',left='+left);
}